// 全屏
export const launchFullScreen = (element) => {
  if (element.requestFullscreen) {
    element.requestFullscreen(); return true
  } else if (element.mozRequestFullScreen) {
    element.mozRequestFullScreen(); return true
  } else if (element.webkitRequestFullscreen) {
    element.webkitRequestFullscreen(); return true
  } else if (element.msRequestFullscreen) {
    element.msRequestFullscreen(); return true
  }
}
// 退出全屏
export const exitFullScreen = (el) => {
  if (document.exitFullscreen) {
    document.exitFullscreen(); return true
  } else if (document.msExitFullscreen) {
    document.msExitFullscreen(); return true
  } else if (document.mozCancelFullScreen) {
    document.mozCancelFullScreen(); return true
  } else if (document.webkitCancelFullScreen) {
    document.webkitCancelFullScreen(); return true
  }
}